import request from '@/utils/request'
import qs from 'qs'

/** *******************        purch-activity          ********************/

export function fetchActivity(shareNum) {
  return request({
    url: `/purch/activity/share/${shareNum}`,
    method: 'get'
  })
}

/** *******************        purch-order          ********************/


export function createOrder(data) {
    return request({
      url: '/purch/order/info',
      method: 'post',
      data
    })
}


export function autoDiscern(data){
  return request({
    url: '/purch/order/autoDiscern',
    method: 'post',
    data
  })
}